SUBMODULES := HELLO WORLD SYSTEM

LLD_FLAGS := --verbose -m elf_i386
VPATH := $(_BUILD)
.PHONY: $(SUBMODULES)
all: $(SUBMODULES)
$(SUBMODULES):
	New-Item -Type Directory -Force -Path $(BUILD)/$(MODULE)
	$(MAKE) --file=Makefile.mk --directory=$(SOURCE)/$(MODULE)/$@ SHELL="$(SHELL)" MODULE=$(MODULE) SUBMODULE=$@
	Copy-Item -Destination $(BUILD) -Path $(BUILD)/$(MODULE)/$@.EXE
